#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.59)
AC_INIT([tangram], [0.1], [guangyu.zhao@hotmail.com])
AM_INIT_AUTOMAKE([tangram], [0.1], [guangyu.zhao@hotmail.com])
AC_CONFIG_SRCDIR([src/base/tangram.h])
AC_CONFIG_HEADER([config.h])

CXXFLAGS="-Wall -g"
CPPFLAGS="-Wall -g"
CFLAGS="-Wall -g"

BOOST_HOME="$HOME/third-party"
AC_SUBST(BOOST_HOME)

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_RANLIB
AC_PROG_AWK
AC_PROG_LIBTOOL

# Checks for libraries.

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([inttypes.h limits.h stddef.h stdint.h stdlib.h string.h sys/time.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_C_VOLATILE

# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_FUNC_MALLOC
AC_FUNC_STRTOD
AC_HEADER_STDC
AC_CHECK_FUNCS([memset strdup strtol])

AC_CONFIG_FILES([makefile
				 src/makefile
				 src/base/makefile
				 ])
AC_OUTPUT
